﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.ServiceModel.Description;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using C1.Silverlight;
using SilverlightTraining_Stelmakh.DataAccessService;
using WindowsManagement;

namespace SilverlightTraining_Stelmakh
{
	public partial class MainPage : UserControl
	{
		private static WindowsHost _host;

		public MainPage()
		{
			InitializeComponent();
			_host = new WindowsHost(taskBar);
		}

		private void Button_Click(object sender, RoutedEventArgs e)
		{
			_host.Add(new C1Window
			          	{
			          		Content = new Views.CalendarView(),
							Header = "N",
							ShowMaximizeButton = false
			          	});
		}
	}
}
